<!-- version 2018.12.10 -->
<!-- SSLの場合 -->
@if(app('env')=='production')
    <link rel="stylesheet" href="{{ secure_asset('/css/home.css') }}">
    <link rel="stylesheet" href="{{ secure_asset('/css/category.css') }}">
    <script src="{{ secure_asset('/js/home.js') }}"></script>
@else
    <!-- SSLではない場合 -->
    <link rel="stylesheet" href="{{ asset('/css/home.css') }}">
    <link rel="stylesheet" href="{{ asset('/css/category.css') }}">
    <script src="{{ asset('/js/home.js') }}"></script>
    @endif

    </head>
    @extends('layouts.admin_common') @section('content')
    <script type="text/javascript">
        function gotoNext(prm) {
            location.href = './' + prm;
        }
        $(Document).ready(function () {
            var $col = $('.col-smrb').toArray();
            var size = $col.length;
            var i = 0;
            delayedUpdatelist(i, size);
        });
    </script>
    <div class="system_tab_line"></div>
    <div class="admin_home_link_title"></div>
    <!-- li add start -->
    <nav class="navbar navbar-expand-lg navbar-dark bg-primary">
        <div class="collapse navbar-collapse" id="navbarNav">
            <ul class="navbar-nav">
                <li class="nav-item active"><a class="nav-link" href="#">トップ <span
                                class="sr-only">(current)</span></a></li>
                <li class="nav-item dropdown"><a class="nav-link dropdown-toggle"
                                                 href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
                                                 aria-haspopup="true" aria-expanded="false"> マスター </a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                        <a class="dropdown-item" href="#" onclick="gotoNext('corp')">会社マスタ</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('user')">ユーザ管理</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('shoplist')">店舗マスタ</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('supplier')">仕入先マスタ</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('category_tree')">カテゴリーマスタ</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('goods')">商品マスタ</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('sale_master')">セール品マスタ</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('set')">セットマスタ</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('setprice')">価格設定マスタ</a>
                        <a class="dropdown-item" href="#"
                           onclick="gotoNext('select_corp_price')">商品価格設定マスタ</a> <a
                                class="dropdown-item" href="#"
                                onclick="gotoNext('setting/update')">設定マスタ</a>
                    </div>
                </li>
                <li class="nav-item dropdown"><a class="nav-link dropdown-toggle"
                                                 href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
                                                 aria-haspopup="true" aria-expanded="false"> 帳票出力 </a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                        <a class="dropdown-item" href="#" onclick="gotoNext('stock_list')">在庫一覧</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('delivery_list')">出荷一覧</a>
                        {{--<a class="dropdown-item" href="#" onclick="gotoNext('delivery_remain')">出荷残一覧</a> --}}
                        <a class="dropdown-item" href="#" onclick="gotoNext('invoice')">納品書発行</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('retain')">返品伝票発行</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('bill')">請求書発行</a>
                        {{--<a class="dropdown-item" href="#" onclick="gotoNext('ordering')">発注書発行</a>--}}
                        <a class="dropdown-item" href="#" onclick="gotoNext('sail_list')">売上一覧</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('notpaied_list')">未入金一覧</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('shop_seil_list')">会社/店舗別売上一覧</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('goods_seil_rank')">商品/カテゴリー別売上一覧</a>
                    </div>
                </li>

                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
                                                 aria-haspopup="true" aria-expanded="false"> 業務 </a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                        <a class="dropdown-item" href="#" onclick="gotoNext('order')">受注処理</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('buy')">仕入処理</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('arrival')">入荷処理</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('ship')">出荷処理</a>
                        {{--<a class="dropdown-item" href="#" onclick="gotoNext('buy_remain')">仕入照会(履歴/残)</a>--}}
                        <a class="dropdown-item" href="#"
                           onclick="gotoNext('invoice_process')">請求処理</a> <a
                                class="dropdown-item" href="#" onclick="gotoNext('income_money')">入金消込</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('tack_down')">棚卸処理</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('eval_change')">評価替え処理(良/不良)</a>
                    </div>
                </li>
                <li class="nav-item dropdown"><a class="nav-link dropdown-toggle"
                                                 href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
                                                 aria-haspopup="true" aria-expanded="false"> 照会 </a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                        <a class="dropdown-item" href="#" onclick="gotoNext('show_stock')">在庫照会</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('show_order')">受注照会</a>
                        <a class="dropdown-item" href="#" onclick="gotoNext('show_bay')">仕入照会(履歴/残)</a>
                        <a class="dropdown-item" href="#"
                           onclick="gotoNext('show_delivery')">出荷照会(履歴/残)</a>
                    </div>
                </li>
            </ul>
        </div>
    </nav>
    <!--  li add end -->

    <!-- <div class="container">-->
    <div class="row">
        <div class="col-sm-2">
            商品カテゴリ
            <ul class="list-group">
                <?php  foreach ($categoryInfos as $category):?>
                <li class="list-group-item "><a href=""><?php echo $category->category_name;?></a>
                </li>
            <?php endforeach;?>


        </div>

        <div class="col-lg">
            <?php if ( 0 < count($newGoods)):?>
            <span class="label label-danger"> NEW ITEM</span>
            <div class="row">
                <?php foreach ($newGoods as $goods):?>
                <div class="col-smrb">
                    <img src="<?php echo $goods->image_url . $goods->file_name?>"
                         style="width: 100px; height: 100px;"/>
                </div>
                <?php endforeach;?>
            </div>
            <?php endif;?>
        </div>
    </div>

    <div class="row">
        <div class="col-sm-2">
            <div class="row" style="height: 60px; margin-top: 5px;">
                <div class="col-sm-2">
                    <a href="https://www.andro.jp/" target=”_blank”> <img
                                src="{{ asset('/image/logo2.jpg') }}" width="180px;"/></a>
                </div>
            </div>
            <div class="row" style="height: 60px;">
                <div class="col-sm-2">
                    <a
                            href="https://www.andro.jp/wp2016/wp-content/themes/andro/pamphlet/andro2012low.pdf"
                            target=”_blank”> <img src="{{ asset('/image/btn_catalog.jpg') }}"
                                                  width="180px;height:40px;"/></a>
                </div>
            </div>
            <div class="row" style="height: 60px;">
                <div class="col-sm-2">
                    <a href="https://www.facebook.com/androtabletennis/" target=”_blank”>
                        <img src="{{ asset('/image/btn_facebook.jpg') }}"
                             width="180px;height:40px;"/>
                    </a>
                </div>
            </div>
        </div>

        <div class="col-lg">
            Infomation 最新情報
            <div style="border: 1px solid black; padding: 5px;">
                <?php foreach ($news as $oneNews ):?>
                <p><?php echo $oneNews->title;?></p>
                <?php endforeach;?>
            </div>
        </div>
        <div class="col-sm-2">
            <button class="btn btn-primary" onclick="gotoNext('news')">編集</button>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-2"></div>
        <div class="col-lg-3">
            <h4>セール品について</h4>
            <P>セール品は期間が決まっています。 期間内で購入してください。</P>
        </div>
        <div class="col-lg-3">
            <h4>キャンセルポリシーについて</h4>
            <P>3日前キャンセル無料です。 当日連絡なく１００％請求します。</P>
        </div>
        <div class="col-lg-3">
            <h4>サイズ交換について</h4>
            <P>同じ商品はサイズ交換できます。 開封した商品は交換できません</P>
        </div>
    </div>
    <div style="width: 100%; text-align: center;">
        <button class="btn btn-primary">問い合わせ</button>
        <span style="margin-left: 10px;">株式会社anddroJapan TEL:047-440-8772
		営業時間：平日10：00～16：00</span>
    </div>
@endsection
